Note: This statement is only used in load test scripts. See Load Testing for more information.
Returns the cookie value set by a WebSetCookie, WebGet, or WebPost statement.
Syntax
WebGetCookie("Name", "URL")
Arguments
| Argument | Description |
|---|---|
| Name | Cookie name. |
| URL | URL the cookie is valid for. Only supports http and https protocols. |
Return value
| Value | Description |
|---|---|
| Value | Cookie value. |
| <Empty string> | Cookie was not set. |
Example
cookie = WebGetCookie("loginname", "http://www.wysicorp.com/")